@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="">

            <div class="row">
                <div class="col-sm-6 b-r">
				        <#input id="revDate" name="统计时间" pattern="YYYY-MM-DD" value="${tool.currentDate(0)}" />
						<#dictSelector  id="type" name ="type" code="borrowingInfo_type"  label="类型"    value="1" />
                         <div class="form-group" " >
								<label class="col-sm-3 control-label">往来客户</label>
								<div class="col-sm-9">
									<select id="contact" name="contact" class="form-control" style="width:248px"   >
										@for(var customer in Customerinfos ){
										<option value="${customer.customercode}">${customer.customername}</option>
										@}
									</select>
								</div>
							</div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">成本项</label>
                            <div class="col-sm-9">
                                <select id="cost" name="cost" class="form-control" style="width:248px"   >
                                    @for(var details in Details ){
                                    <option value="${details.id}" valueType="${details.type}" >${details.name}</option>
                                    @}
                                </select>
                            </div>
                        </div>


                </div>

                <div class="col-sm-6">
                            <#input id="note" name="摘要"  />
                            <#input id="pisoAmount" name="披索金额" value="0.00"/>
                            <#input id="rmbAmount" name="人民币金额" value="0.00" />
                            
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="BorrowingInfoInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="BorrowingInfoInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/borrowing/borrowingInfo/borrowingInfo_info.js"></script>
@}
